package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingProjectMapper {
    /*分页查询*/
    Page<NursingProjectVo> selectByPage(String name, Integer status);

    /*添加*/
    void insert(NursingProject nursingProject);

    /*根据id查询*/
    NursingProject selectById(Long id);

    /*更新*/
    void update(NursingProject nursingProject);

    void statueById(Long id, Integer status);

    void deleteById(Long id);

    List<NursingProject> findAll();

}
